package com.uml.umlwork.dto.news;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author Youens
 * @date 2021-01-03 17:22
 */
@ApiModel("新闻修改信息DTO")
@Getter
@Setter
@NoArgsConstructor
public class NewsDTO {

    @ApiModelProperty("新闻id")
    private Integer newId;

    @ApiModelProperty("内容")
    @NotNull(message = "内容不能为空")
    private String content;

    @ApiModelProperty("标题")
    @NotNull(message = "标题不能为空")
    private String title;
}
